<?

include('lightconn.class.php');

$createdTimeStamp = microtime(true);

$conn = new LightConnection('mysqli');

$conn->Connect('localhost', 'admin', 'admin', 'xerp');

$result = $conn->Query("set names utf8");

//$result = $conn->Query("select * from associados where a_id > ? or a_id > ?", array(1, 10001));

//$result = $conn->Query("select * from associados limit ?", array(3));

$result = $conn->Execute("GRANT ALL PRIVILEGES ON * . * TO 'raphael2'@'localhost' IDENTIFIED BY '123' WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0");

$result = $conn->Query("select * from usuario where u_id > ?", array(0));

//$result = $conn->Query("call dummy(?)", array(10002));
//$result = $conn->Query("call ListarUplines(?)", array(10002));
//$result = $conn->Execute("update associados set a_status = 1 where a_status = 1");
//$result = $conn->Execute("INSERT INTO bancos (banco_nome, banco_codigo, banco_ativo) VALUES(?,?,?);", array(1, 1, 1));



//print $result;

print "<pre>";

while ($result->hasNext())
{
	$arr = $result->moveNext();
	print_r($arr);
}

print "</pre>";

$elapsed = microtime(true)-$createdTimeStamp;

print "<br>$elapsed<br>";

?>